//
//  NSString+Extension.h
//  KYViedoApp
//
//  Created by 张浩 on 16/5/17.
//  Copyright © 2016年 KingNet. All rights reserved.
//

NSString *settingRoute(NSString *startPoint, NSString *endPoint);
NSString *mutablePage(NSString *page ,long tvid);
NSString *mutablePosition(long position,long index);
NSString *mutablePositionWithCategoryId(long position,long index, long categoryId);

#import <Foundation/Foundation.h>

@interface NSString (Extension)

+ (NSString *)appVersion;

- (NSString *)md5;

- (CGSize)sizeWithFont:(UIFont *)font maxWidth:(CGFloat)maxWidth;
- (CGSize)sizeWithFont:(UIFont *)font;

+ (NSString *)stringByInt:(long)num;
+ (NSString *)stringByUnsignedInt:(long)num;
+ (NSString *)stirngByFloat:(float)num;
+ (NSString *)stirngByDouble:(double)num;
+ (NSString *)stringForCount_W:(long long)count;
/** 数量以“个/万个”为单位 */
+ (NSString *)stringForCount_Individual:(long long)count;
#pragma mark -判断空串
+ (BOOL)isEmptyString:(NSString *)str;

#pragma mark - 表情类
/* 表情编码 */
- (NSString*) encoderEmoji;
/* 将转义的表情等文字反转 */
- (NSString*) decoderEmoji;



@end

#define _stringByInt(a)         [NSString stringByInt:a]
#define _stringByUnsignedInt(a) [NSString stringByUnsignedInt:a]
#define _stringByFloat(a)       [NSString stirngByFloat:a]
#define _stringByDouble(a)      [NSString stirngByDouble:a]
